Conversation
Co-authored-by: gewarren <24882762+gewarren@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Port type remarks from custom reflection context
Port CustomReflectionContext type remarks to supplemental API documentation
Feb 12, 2026
gewarren
approved these changes
Feb 13, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR ports type-level remarks for System.Reflection.Context.CustomReflectionContext from the dotnet-api-docs XML format to a supplemental API documentation page, following the established pattern from PR #51712 (DynamicILInfo).
Changes:
- New supplemental API remarks page explaining CustomReflectionContext usage, patterns, and warnings
- C# code example demonstrating custom attribute injection through reflection contexts
- TOC entry added under Reflection → Supplemental API remarks
- .gitignore entries for build artifacts (redundant with existing patterns)
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| docs/fundamentals/toc.yml | Adds TOC entry for CustomReflectionContext under Reflection → Supplemental API remarks |
| docs/fundamentals/runtime-libraries/system-reflection-context-customreflectioncontext.md | New documentation page with type remarks, usage guidance, warnings, and example |
| docs/fundamentals/runtime-libraries/snippets/system-reflection-context-customreflectioncontext/csharp/program.cs | Complete C# example demonstrating custom attribute injection |
| docs/fundamentals/runtime-libraries/snippets/system-reflection-context-customreflectioncontext/csharp/CustomReflectionContextExample.csproj | Project file targeting net10.0 with System.Reflection.Context package reference |
| .gitignore | Adds bin/ and obj/ entries (redundant with existing [Bb]in/ and [Oo]bj/ patterns) |
...ntime-libraries/snippets/system-reflection-context-customreflectioncontext/csharp/program.cs
Outdated
Show resolved
Hide resolved
docs/fundamentals/runtime-libraries/system-reflection-context-customreflectioncontext.md
Outdated
Show resolved
Hide resolved
…customreflectioncontext.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: gewarren <24882762+gewarren@users.noreply.github.com>
gewarren
approved these changes
Feb 13, 2026
gewarren
reviewed
Feb 13, 2026
Co-authored-by: gewarren <24882762+gewarren@users.noreply.github.com>
auto-merge was automatically disabled
February 13, 2026 01:03
Head branch was pushed to by a user without write access
gewarren
approved these changes
Feb 13, 2026
docs/fundamentals/runtime-libraries/system-reflection-context-customreflectioncontext.md
Outdated
Show resolved
Hide resolved
meaghanlewis
approved these changes
Feb 13, 2026
Removed duplicate warning about equality among reflected objects and custom attributes.
gewarren
reviewed
Feb 13, 2026
docs/fundamentals/runtime-libraries/system-reflection-context-customreflectioncontext.md
Show resolved
Hide resolved
…customreflectioncontext.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Porting CustomReflectionContext Type Remarks
This PR ports the type-level remarks from the dotnet-api-docs repository to create a new supplemental API remarks page for
System.Reflection.Context.CustomReflectionContext, following the pattern established in PR #51712.Completed Work
system-reflection-context-customreflectioncontext.mdChanges Summary
docs/fundamentals/runtime-libraries/system-reflection-context-customreflectioncontext.md- Main documentation page with type-level remarks ported from XMLdocs/fundamentals/runtime-libraries/snippets/system-reflection-context-customreflectioncontext/csharp/program.cs- C# example code with PascalCase class namesdocs/fundamentals/runtime-libraries/snippets/system-reflection-context-customreflectioncontext/csharp/CustomReflectionContextExample.csproj- Project file targeting .NET 10 with System.Reflection.Context packagedocs/fundamentals/toc.yml- Added TOC entry under Reflection → Supplemental API remarksNotes
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
Internal previews